import request from "@/utils/request"; //导入封装请求的js文件
//获取频道
export function pmsChannel(params) {
  return request({
    url: "/pmsChannel",
    method: "get",
    params: params,
  });
}
//获取类目属性
export function selectAllByCategory(params) {
  return request({
    url: "/pmsProductAttributeCategory/selectAllByCategory",
    method: "get",
    params: params,
  });
}
//获取颜色列表
export function selectColor(params) {
  return request({
    url: "/systemSetting/selectColor",
    method: "get",
    params: params,
  });
}
//获取尺码范围
export function selectAllByType(params) {
  return request({
    url: "/systemSetting/selectAllByType",
    method: "get",
    params: params,
  });
}
//根据尺码类型获取详细尺寸
export function pmsSelectAllByType(params) {
  return request({
    url: "/pmsSkuStock/selectAllByType",
    method: "get",
    params: params,
  });
}
//发布商品
export function saveProduct(params) {
  return request({
    url: "/pmsProduct/saveProduct",
    method: "post",
    data: params,
  });
}
//获取图片包图片
export function selectZipImages(params) {
  return request({
    url: "/common/upload/selectZipImages",
    method: "get",
    params: params,
    headers:{
      showLoading:false
    }
  });
}